<template>
	<view class="container">
		<web-view :src="url"></web-view>
	</view>
</template>

<script setup>
     import {
		onLoad
	 } from "@dcloudio/uni-app"
	 import {
		ref
	 } from 'vue'
	 import {
		CONFIG
	 } from "../../utils/config"
	 import {userStore} from"../../store/userStrore.js"
	 const store=userStore()
	 
	 const url=ref("")
	 onLoad((data)=>{
		 url.value=`${CONFIG.goade_line_url}?start=${data.slon},${data.slat}&dest=${data.elon},${data.elat}&destName=${data.name}&key=${CONFIG.gaode_key}&jscode=${CONFIG.gaode_skey}`
		 console.log(url.value)
	 })

</script>

<style>

</style>
